<div class="tablecontaner">
<div class="search">
    <div class="searchinfo col-xs-8">
        <input type="text" ng-model="searchWord" class="form-control input-sm" placeholder="输入搜索条件">
    </div>
    <div class="searchbtn col-xs-4">
        <a class="btn btn-sm btn-danger btn-rounded" ng-click="deleteSelected()" >
            <i class="glyphicon glyphicon-trash">
            </i>
            删除
        </a>
        <a class="btn btn-sm btn-primary btn-rounded" ng-click="newData()">
            <i class="glyphicon glyphicon-plus">
            </i>
            添加
        </a>
        <a class="btn btn-sm btn-success btn-rounded" ng-click="searchData()">
            <i class="glyphicon glyphicon-search">
            </i>
            查询
        </a>
    </div>
</div>
<table class="edittable">
    <thead>
    <tr>
        <th></th>
        <th ng-show="false">ID</th>
        <th>登录账号</th>
        <th>用户名称</th>
        <th>角色设置</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody ng-show="!isLoading">
    <tr ng-repeat="user in users">
        <td ad-row-select-directive="user"></td>
        <td ng-show="false">{{user.user_id}}</td>
        <td>{{user.user_name}}</td>
        <td>{{user.user_alias}}</td>
        <td>
            <a class="btn btn-sm btn-success btn-outline btn-rounded" ng-click="setCurrentRowUsrRoles(user)" >
                <i class="glyphicon glyphicon-edit">
                </i>
                设置
            </a>
        </td>
        <td>

            <a class="btn btn-sm btn-info btn-outline btn-rounded" ng-click="editRow(user)" >
                <i class="glyphicon glyphicon-edit">
                </i>
                编辑
            </a>
            <a class="btn btn-sm btn-danger btn-outline btn-rounded" ng-click="deleteRow(user)">
                <i class="glyphicon glyphicon-trash">
                </i>
                删除
            </a>
        </td>
    </tr>
    </tbody>
    <tbody ng-show="isLoading">
    <tr>
        <td colspan="5" class="text-center">
            <img class="imgloading" src="app/images/loading.gif"/>
        </td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
        <td class="text-center" colspan="5">
            <uib-pagination total-items="totalItems" items-per-page="itemsPerPage"
                        ng-model="currentPage" max-size="maxSize"
                        class="pagination-sm" boundary-links="true"
                        next-text="下一页" previous-text="上一页"
                        first-text="首页" last-text="末页"
                        rotate="false" num-pages="numPages"
                        ng-change="pageChanged()"></uib-pagination>
        </td>
    </tr>
    </tfoot>
</table>
</div>